<?php if(!defined('A')) exit;?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>网站内容管理系统</title>
<?php
loadcss(array('reset','shell'));

//loadcss(array('colorbox'),P_CSS);
loadjs(array('jquery'),P_JS);

loadjs(array('tab','util','table'));

?>
<script type="text/javascript">
$(document).ready(function(e) {
var smallNowTab;
var pt = new Tabs();
pt.classpre="smalltab_";
pt.container = "smalltab_container";
pt.createTab("t1","文件查看","",true,"n");
pt.init = function(){
	smallNowTab = pt.nowTab;
};
pt.onclick = function(){
	smallNowTab = pt.nowTab;
};		
pt.initTab();
pt.clickNowTab();    
});

$(document).ready(function(){ 
	
});


</script>
<style>
body{margin:10px;}
</style>
</head>
<body>
<a name="0"> </a>
<table class="settop">
<tr>
<td class="settop_left">
&nbsp;&nbsp;
</td>
<td>
<div id="smalltab_container"></div>
</td>
</tr>
</table>
<div class="smalltab_line"></div>
<div id="t1">
<br />
<br />
<?php
$i=1;
foreach($detail as $k=>$v){
?>
<h1 style="color:red;font-size:16px;"><?php echo $k;?>文件夹</h1>
<?php
	foreach($v as $filename=>$content){
?>
<a href="#<?php echo $i;?>"><?php echo $filename;?></a><br />
<?php
	$i++;
	}
?>
<br />

<?php
}
?>
<br />
<br />


<pre>
<?php
$i=1;
foreach($detail as $k=>$v){
?>
<h1 style="color:red;font-size:16px;"><?php echo $k;?></h1>
<?php
	foreach($v as $filename=>$content){
?>
<h2 style="color:green;font-size:14px;"><?php echo $i;?>. <?php echo $filename;?><a name="<?php echo $i;?>"> </a> <a href="#0">回顶部</a></h2>
<!--<embed width="62" height="24" align="center"
flashvars="txt=<?php echo $content;?>"
src="<?php echo PROJECT_SWF_URL;?>copy.swf"
quality="high" wmode="transparent"
allowscriptaccess="sameDomain"
pluginspage="http://www.adobe.com/go/getflashplayer"
type="application/x-shockwave-flash">-->
<div>
<?php echo $content;?>
</div>
<?php
	$i++;
	}
?>
<?php
}
?>
</pre>


</div>
</body>
</html>